package com.camel.chart.enums;

import lombok.Getter;

@Getter
public enum MsgTypeEnum {

    TYPE_LOGIN(0, "登录"),
    TYPE_LOGIN_CALLBACK(1, "回应登录"),
    TYPE_TEXT_MSG(2, "文本消息"),
    TYPE_FILE_REQ(3,"文件发送请求"),
    TYPE_FILE_ACK(4,"文件发送请求确认"),
    TYPE_FILE_MSG(5,"文件消息"),
    TYPE_FILE_EOF(5,"文件发送结束"),
    TYPE_LOGOUT(6,"用户登出");

    private Integer code;
    private String name;

    MsgTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
